package com.partvoyage.client.mvp2.event;

import com.google.gwt.event.shared.EventHandler;
import com.google.gwt.event.shared.GwtEvent;

public class ChargerPointWikipediaEvent extends
		GwtEvent<ChargerPointWikipediaEvent.ChargerPointWikipediaEventHandler> {
	public static Type<ChargerPointWikipediaEventHandler> TYPE = new Type<ChargerPointWikipediaEventHandler>();

	public interface ChargerPointWikipediaEventHandler extends EventHandler {
		void onChargerPointWikipedia(ChargerPointWikipediaEvent event);
	}

	private Double latitude;
	private Double longitude;

	public ChargerPointWikipediaEvent(Double latitude, Double longitude) {
		this.latitude = latitude;
		this.longitude = longitude;
	}

	public Double getLatitude() {
		return latitude;
	}

	public Double getLongitude() {
		return longitude;
	}

	@Override
	public com.google.gwt.event.shared.GwtEvent.Type<ChargerPointWikipediaEventHandler> getAssociatedType() {
		return TYPE;
	}

	@Override
	protected void dispatch(ChargerPointWikipediaEventHandler handler) {
		handler.onChargerPointWikipedia(this);

	}

}
